import request from '@/utils/request'

// 查询室间质评列表
export function listSpaceQuality(query) {
  return request({
    url: '/system/spaceQuality/list',
    method: 'post',
    data: query
  })
}

// 查询室间质评详细
export function getSpaceQuality(id) {
  return request({
    url: '/system/spaceQuality/' + id,
    method: 'get'
  })
}

// 新增室间质评
export function addSpaceQuality(data) {
  return request({
    url: '/system/spaceQuality',
    method: 'post',
    data: data
  })
}

// 修改室间质评
export function updateSpaceQuality(data) {
  return request({
    url: '/system/spaceQuality',
    method: 'put',
    data: data
  })
}

// 删除室间质评
export function delSpaceQuality(id) {
  return request({
    url: '/system/spaceQuality/' + id,
    method: 'delete'
  })
}
